package com.example.designpatterns.creational.singleton;

/**
 * @author zuitu@foxmail.com
 * @date 2024/1/18
 */
public enum UserEnum {
    INSTANCE;
    private User user;

    UserEnum() {
        this.user = new User();
    }

    public User getUser() {
        return user;
    }
}
